package com.suse.lhw.hms.authserver.controller;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.hms.authserver.controller
 * @ClassName: FreemarkerControllder
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/4/3 9:04
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/4/3 9:04
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Controller
@RequestMapping("/ftl")
public class FreemarkerControllder {
    @RequestMapping("/index")
    public String index(ModelMap modelMap) {
        modelMap.addAttribute("var", "FreeMarker");
        return "freemarker/index";
    }
}
